//
//  EJSHomeRecommendHeaderReusableView.m
//  EnjoyShoppingStreet
//
//  Created by lifayu on 2017/12/21.
//  Copyright © 2017年 lifayu. All rights reserved.
//

#import "EJSHomeRecommendHeaderReusableView.h"

@implementation EJSHomeRecommendHeaderReusableView

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if(self){
        [self addOwnViews];
        self.imageView.frame = CGRectMake(15, 15, self.width-30, self.height - 15);
        self.imageView.contentMode = UIViewContentModeScaleAspectFill;
        self.imageView.layer.cornerRadius = 10;
        self.imageView.clipsToBounds = YES;
    }
    return self;
}


- (void)layoutSubviews{
    [super layoutSubviews];
}
- (void)addOwnViews
{
    self.backgroundColor = kWhiteColor;
    self.imageView = [[UIImageView alloc] init];
    [self addSubview:self.imageView];
}

@end
